﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace NDF.XnaLibrary.Models
{
	public struct Skill
	{
		public string Name;
		public int Id;
		public DamageType Type;
		public float EstimatedDamage;
		public SkillTargetingType TargetingType;
		public object Target;
		public TimeSpan CastingTime;
		public AnimationType Animation;
		public AnimationType PostCastingAnimation;

		public bool IsInstantCast
		{
			get { return CastingTime == TimeSpan.Zero; }
		}

		public static Skill GetBasicSkill()
		{ 
			Skill skill = new Skill();
			skill.Name = "Basic skill";
			skill.PostCastingAnimation = AnimationType.PostCasting0;
			skill.CastingTime = new System.TimeSpan(0, 0, 0);
			skill.TargetingType = SkillTargetingType.SkillShot;
			skill.Target = new Vector3(0, 0, 20);
			return skill;
		}
	}
}
